/**
 * 
 */
package info.niwota.web.apache;

import java.io.IOException;

import x.org.apache.http.HttpException;
import x.org.apache.http.HttpRequest;
import x.org.apache.http.HttpRequestInterceptor;
import x.org.apache.http.protocol.HttpContext;

/**
 * @author qiangli
 *
 */
public class ProxyRequestInterceptor implements HttpRequestInterceptor {

	public ProxyRequestInterceptor() {
	}

	public void process(HttpRequest request, HttpContext context)
			throws HttpException, IOException {
		boolean b = (HttpUtils.isProxyRequest(request));
		context.setAttribute(WebConstants.BLUEWEB_PROXY_REQUEST, String.valueOf(b));
	}

}
